package com.xbongbong.pro.coolapp.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.toolbox.wrap.UserVO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @author zhushuainan
 * @title: CoolAppSendRemindTopCardDTO
 * @projectName xbb-pro
 * @description: TODO
 * @date 2022/7/6 14:47
 */
@Getter
@Setter
@ToString
public class CoolAppSendRemindTopCardDTO extends BaseDTO{

    private static final long serialVersionUID = -3067967436220970384L;

    public CoolAppSendRemindTopCardDTO() {
    }

    public CoolAppSendRemindTopCardDTO(String corpid, UserVO userVO, String platform, Long refId, Integer type, String pushObject, String msg, Long pushTime) {
        this.refId = refId;
        this.type = type;
        this.pushObject = pushObject;
        this.msg = msg;
        this.pushTime = pushTime;

        super.setCorpid(corpid);
        super.setLoginUser(userVO);
        super.setUserId(userVO.getUserId());
        super.setLoginUserName(userVO.getName());
        super.setPlatform(platform);
    }

    //========== properties ==========

    /**
     * 对象id
     */
    private Long refId;
    /**
     * 推送类型
     */
    private Integer type;
    /**
     * 推送对象{"type" : "|1|2|","role" : {"enable":,"value":[]}, "dep" :  {"enable":,"value":[]}, "user" :  {"enable":,"value":[]}, "manager" :  {"enable":,"value":[]}}
     */
    private String pushObject;
    /**
     * 推送内容
     */
    private String msg;
    /**
     * 推送时间
     */
    private Long pushTime;
}
